﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace KgUtils.ActiveDirectory
{
    public class ActiveDirectoryUser : IEquatable<ActiveDirectoryUser>
    {
        public string FullName { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Email { get; set; }
        public string AccountName { get; set; }
        public string UserPrincipalName { get; set; }

        public override string ToString()
        {
            return FullName;
        }

        public bool Equals(ActiveDirectoryUser other)
        {
            return other.AccountName.ToLower() == this.AccountName.ToLower();
        }
    }
}
